package com.polaris.live.adapter.recharge

import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.polaris.live.ui.recharge.RechargeActivity

/**
 * RechargeViewPageAdapter
 *
 * @author Created by 半仙 on 2024/3/13/013 14:24
 */
class RechargeViewPageAdapter(
    var list: List<Fragment>,
    activity: RechargeActivity,
) : FragmentStateAdapter(activity) {
    override fun getItemCount() = list.size

    override fun createFragment(position: Int) = list[position]

}